<template>
	<view class="page_box  ">
		<u-navbar
			:is-back="true"
			:title="title"
			v-if="1"
			:border-bottom="false"
			title-color="#000"
			
		></u-navbar>

		<view class="content_box padding">
			<u-parse :html="data" :show-with-animation="true" :lazy-load="true" ></u-parse>
		</view>
		<yy-login v-if="vuex_login"></yy-login>
		<yy-loading text="加载中.." mask="true" click="true" ref="loading"></yy-loading>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
export default {
	data() {
		return {
			field: {
				backgroundColor: '#000'
			},
			data:'',
			title:''
		};
	},
	onShow() {},
	onLoad(e) {
		// 1 用户协议 2 隐私政策
		if (e.type==1) {
			this.title = '用户协议'
		} else{
			this.title = '隐私政策'
		}
		this.name(e.type)
	},
	methods: {
		async name(type){
			let obj = {
			    type,
			};
			const res = await this.$u.post("/Index/getContent",obj,{});
			
			this.data = res.data.content;
			console.log("res >>  ", res);
			 
		},
	}
};
</script>

<style lang="scss" scoped>
.page_box {
	.content_box {
	}
}
</style>
